<<<<<<< HEAD
const webpack = require('webpack');
const path = require('path');
const utils = require('./src/js/utils.js');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
    entry: './test/draw.js',
    output: {
        filename: '[hash][name].js',
        path: path.resolve(__dirname, 'dist'),
        chunkFilename: '[chunkhash].js'
    },
    plugins: [
        new HtmlWebpackPlugin({
            title: '画图',
            filename: 'draw.html',
            template: 'template/draw.ejs',
            path: path.resolve(__dirname, 'dist'),
        }),
        new webpack.HotModuleReplacementPlugin()
    ],
    module: {
        rules: [{
            test: /\.css$/,
            use: ['style-loader', 'css-loader']
        }]
    },
    devServer: {
        contentBase: path.join(__dirname, "dist"),
        compress: true,
        port: 9888,
        hot: true
    },
=======
const path = require('path');
module.exports = {
    entry: './src/js/draw.js',
    output: {
        filename: 'kdraw.min.js',
        path: path.resolve(__dirname, 'dist')
    }
>>>>>>> 79b80d0fda0a311f7fc3f7f569dd396f7facfe6c
}